<?php 
	class login_model extends CI_Model{
		public function get_Once($username,$password){
			$data=array(
				'username'=>$username,
				'password'=>$password
				);
			$query=$this->db->where($data)->get('admin');
			return $query->row();
		}
	}